package com.yyx.config.starter;


import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.ansi.AnsiOutput;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages={"com.yyx.config"})
public class ApplicationStarter {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ApplicationStarter.class);
        AnsiOutput.setEnabled(AnsiOutput.Enabled.ALWAYS);
        app.setBannerMode(Banner.Mode.CONSOLE);
        app.run(args);
    }
}